<?php

namespace App\Constant;

class CommissionEnum
{
    // 普通邀请
    const SOURCE_NORMAL_INVITE = 'direct_invite';//师徒奖励
    // 团长直接邀请的下级，没有师傅ID
    const SOURCE_GROUP_DIRECT = 'group_invite';
//团队佣金
    const SOURCE_GROUP_CASH = 'group_cash';

    const SOURCE_UPPER_GROUP = 'upper_group';
    const XZB_TASK = 'xzb_task';//任务佣金
    const XIANWAN_TASK = 'xianwan_task';//任务佣金
    
    const QIANLIANG_TASK = 'qianliang_task';

    const DUOMI_TASK = 'duomi_task';

    const SHANGBANWAN_TASK = 'shangbanwan_task';

    const QIE_TASK = 'qie_task';

    public static function getSourceExplains()
    {
        return [
            self::SOURCE_NORMAL_INVITE => '师徒奖励',
            self::SOURCE_GROUP_DIRECT => '团长奖励',
            self::SOURCE_UPPER_GROUP => '子团奖励',
            self::SOURCE_GROUP_CASH => '分销佣金',
            self::XZB_TASK => '任务佣金',
        ];
    }

    public static function getSourceColors()
    {
        return [
            self::SOURCE_NORMAL_INVITE => 'default',
            self::SOURCE_GROUP_DIRECT => 'success',
            self::SOURCE_GROUP_CASH => 'primary',
        ];
    }
}
